<ion-header>

  <ion-navbar color="mainColor">
    <ion-title>{{this._tname}}</ion-title>
  </ion-navbar>

</ion-header>
<ion-content>
  <div padding [style.padding-bottom.px]="0" >
    <ion-segment [(ngModel)]="questionStatus"  color="mainColor">
      <ion-segment-button value="all">
        <span>全部</span>
        <span>{{this.ALL||0}}</span>
      </ion-segment-button>
      <ion-segment-button value="over">
        <span>已上传</span>
        <span>{{this.Y||0}}</span>
      </ion-segment-button>
      <ion-segment-button value="not">
        <span>未上传</span>
        <span>{{this.W||0}}</span>
      </ion-segment-button>
      <ion-segment-button value="stop">
        <span>已暂停</span>
        <span>{{this.Z||0}}</span>
      </ion-segment-button>
    </ion-segment>
  </div>

  <div [ngSwitch]="questionStatus" class="recy">
    <ul *ngSwitchCase="'all'" style="padding: 0" #inp>
      <li *ngFor="let n of this._list;let i=index;" (click)="OverDetails(n.FAnswerId,i+1)">
        <div class="question-info">
          <div>
            <span>编号{{i+1}}</span>
            <span>{{n.FSummitTime}}</span>
            <span *ngIf="n.FUpdateloadState==-1">暂停</span>
            <span *ngIf="n.FUpdateloadState==1">计：{{n.UseTime}}未上传</span>
            <span *ngIf="n.FUpdateloadState==2">计：{{n.UseTime}}已上传</span>
          </div>
        </div>
      </li>
    </ul>
    <ul *ngSwitchCase="'over'" style="padding: 0" #inpover>
      <li *ngFor="let n of this._list;let i=index;" (click)="OverDetails(n.FAnswerId,i+1)">
        <div class="question-info" *ngIf="n.FUpdateloadState==2">
          <div>
            <span>编号{{i+1}}</span>
            <span>{{n.FSummitTime}}</span>
            <span *ngIf="n.FUpdateloadState==-1">暂停</span>
            <span *ngIf="n.FUpdateloadState==1">计：{{n.UseTime}}未上传</span>
            <span *ngIf="n.FUpdateloadState==2">计：{{n.UseTime}}已上传</span>
          </div>
        </div>
      </li>
    </ul>
    <ul *ngSwitchCase="'not'" style="padding: 0" #inpnot>
      <li *ngFor="let n of this._list;let i=index;" (click)="OverDetails(n.FAnswerId,i+1)">
        <div class="question-info" *ngIf="n.FUpdateloadState==1">
          <div>
            <span>编号{{i+1}}</span>
            <span>{{n.FSummitTime}}</span>
            <span *ngIf="n.FUpdateloadState==-1">暂停</span>
            <span *ngIf="n.FUpdateloadState==1">计：{{n.UseTime}}未上传</span>
            <span *ngIf="n.FUpdateloadState==2">计：{{n.UseTime}}已上传</span>
          </div>
        </div>
      </li>
    </ul>
    <ul *ngSwitchCase="'stop'" style="padding: 0" #inpstop>
      <li *ngFor="let n of this._list;let i=index;" (click)="OverDetails(n.FAnswerId,i+1)">
        <div class="question-info" *ngIf="n.FUpdateloadState==-1">
          <div>
            <span>编号{{i+1}}</span>
            <span>{{n.FSummitTime}}</span>
            <span *ngIf="n.FUpdateloadState==-1">暂停</span>
            <span *ngIf="n.FUpdateloadState==1">计:{{n.UseTime}}未上传</span>
            <span *ngIf="n.FUpdateloadState==2">计:{{n.UseTime}}已上传</span>
          </div>
        </div>
      </li>
    </ul>
  </div>
</ion-content>
